home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 14
/
CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso
/
VistaPro
/
rexx
/
FB.rexx
next >
Wrap
OS/2 REXX Batch file
|
1993-01-30
|
1KB
|
43 lines
/* FB.rexx -- Vista-to-FrameBuffer ARexx macro */
/* Written by William Sorensen */
/* Copyright © 1992 by Joseph P. Laleman */
/* This is a sample ARexx program for use with VistaPro. It is provided */
/* as an example of how to call ARexx to display each VistaPro generated */
/* iff24 file on the Mimetics framebuffer. */
/* */
/* You must have ARexx and ADPro properly installed on your Amiga for this */
/* example to work. */
ADPpath='ADPro:ADPro' /* You must ASSIGN ADPro: to the proper directory */
IF ARG()~=1 THEN EXIT /* Expects a command line argument */
PARSE ARG filename
TRACE OFF /* Avoids unwanted error messages */
IF ~SHOW('P','ADPro') THEN DO
/* Try to start up ADPro */
ADDRESS COMMAND 'run <NIL: >NIL: 'ADPpath
IF RC~=0 THEN EXIT
ADDRESS COMMAND 'waitport ADPro'
IF RC~=0 THEN EXIT
END
ADDRESS 'ADPro'
OPTIONS RESULTS
'PSTATUS UNLOCKED' /* Just in case */
'LFORMAT IFF'
'LOAD 'filename
IF RC~=0 THEN DO
'ADPRO_TO_FRONT'
'OKAY1 Unable to load file 'filename
EXIT
END
'SFORMAT FRAMEBUFFER'
'SAVE fnord RAW'
IF RC~=0 THEN DO
'ADPRO_TO_FRONT'
'OKAY1 Unable to send file to FrameBuffer'
EXIT
END
'ADPRO_EXIT' /* Replace with 'EXIT' if you have an older version of ADP */
EXIT